/* Debugging support */
typedef struct _GdkEventFilter GdkEventFilter;
+typedef struct _GdkWindowAttr GdkWindowAttr;
typedef enum {
GDK_EVENT_FILTER_REMOVED = 1 << 0
GDK_GL_GLES = 1 << 6
} GdkGLFlags;
+typedef enum
+{
+ GDK_WA_X = 1 << 1,
+ GDK_WA_Y = 1 << 2
+} GdkWindowAttributesType;
+
extern GList *_gdk_default_filters;
extern GdkWindow *_gdk_parent_root;
typedef struct _GdkWindowPaint GdkWindowPaint;
+struct _GdkWindowAttr
+{
+ gint event_mask;
+ gint x, y;
+ gint width;
+ gint height;
+ GdkWindowWindowClass wclass;
+ GdkWindowType window_type;
+ GdkWindowTypeHint type_hint;
+};
+
struct _GdkWindow
{
GObject parent_instance;
cairo_surface_t *
_gdk_window_ref_cairo_surface (GdkWindow *window);
+GdkWindow* gdk_window_new (GdkWindow *parent,
+ GdkWindowAttr *attributes,
+ gint attributes_mask);
void _gdk_window_destroy (GdkWindow *window,
gboolean foreign_destroy);
void _gdk_window_clear_update_area (GdkWindow *window);
G_BEGIN_DECLS
typedef struct _GdkGeometry GdkGeometry;
-typedef struct _GdkWindowAttr GdkWindowAttr;
typedef struct _GdkWindowRedirect GdkWindowRedirect;
/**
GDK_WINDOW_SUBSURFACE
} GdkWindowType;
-/**
- * GdkWindowAttributesType:
- * @GDK_WA_X: Honor the X coordinate field
- * @GDK_WA_Y: Honor the Y coordinate field
- *
- * Used to indicate which fields in the #GdkWindowAttr struct should be honored.
- * For example, if you filled in the “x” and “y” fields of #GdkWindowAttr,
- * pass “@GDK_WA_X | @GDK_WA_Y” to gdk_window_new(). Fields in
- * #GdkWindowAttr not covered by a bit in this enum are required; for example,
- * the @width/@height, @wclass, and @window_type fields are required, they have
- * no corresponding flag in #GdkWindowAttributesType.
- */
-typedef enum
-{
- GDK_WA_X = 1 << 1,
- GDK_WA_Y = 1 << 2
-} GdkWindowAttributesType;
-
/* Size restriction enumeration.
*/
/**
GDK_FULLSCREEN_ON_ALL_MONITORS
} GdkFullscreenMode;
-/**
- * GdkWindowAttr:
- * @event_mask: event mask (see gdk_window_set_events())
- * @x: X coordinate relative to parent window (see gdk_window_move())
- * @y: Y coordinate relative to parent window (see gdk_window_move())
- * @width: width of window
- * @height: height of window
- * @wclass: #GDK_INPUT_OUTPUT (normal window) or #GDK_INPUT_ONLY (invisible
- * window that receives events)
- * @window_type: type of window
- * @cursor: cursor for the window (see gdk_window_set_cursor())
- * @type_hint: a hint of the function of the window
- *
- * Attributes to use for a newly-created window.
- */
-struct _GdkWindowAttr
-{
- gint event_mask;
- gint x, y;
- gint width;
- gint height;
- GdkWindowWindowClass wclass;
- GdkWindowType window_type;
- GdkWindowTypeHint type_hint;
-};
-
/**
* GdkGeometry:
* @min_width: minimum width of window (or -1 to use requisition, with
*/
GDK_AVAILABLE_IN_ALL
GType gdk_window_get_type (void) G_GNUC_CONST;
-GDK_AVAILABLE_IN_ALL
-GdkWindow* gdk_window_new (GdkWindow *parent,
- GdkWindowAttr *attributes,
- gint attributes_mask);
GDK_AVAILABLE_IN_3_90
GdkWindow * gdk_window_new_toplevel (GdkDisplay *display,
gint event_mask,